package com.suanfa.bintree;

public class BinNodes {

    private BinNodes left;

    private BinNodes right;

    private Integer value;

    private String name;

    public BinNodes(Integer value) {
        this.value = value;
    }

    public BinNodes(String name) {
        this.name = name;
    }

    public BinNodes getLeft() {
        return left;
    }

    public void setLeft(BinNodes left) {
        this.left = left;
    }

    public BinNodes getRight() {
        return right;
    }

    public void setRight(BinNodes right) {
        this.right = right;
    }

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getName() {
        return name;
    }
}
